package com.kangyi.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "动态健康数据统计查询参数 DTO")
public class HealthStatisticsQueryDTO {

    @ApiModelProperty(value = "开始日期，格式：yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate begin;

    @ApiModelProperty(value = "结束日期，格式：yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate end;

    @ApiModelProperty(value = "客户 ID")
    private Integer guestId;

    @ApiModelProperty(value = "查询字段列表: 血糖-(blood_sugar)," +
            "血压-(blood_pressure_systolic,blood_pressure_diastolic)," +
            "血脂-(blood_lipids)," +
            "尿酸-(uric_acid)")
    private List<String> fields;
}